<?php  echo $this->Session->flash();?>

<div class="row">
	<div class="col-lg-12">
		<h2 class="page-header"><?php echo $title_for_layout?></h2>
	</div>
</div>
<?php echo $this->Form->create('Configuration', array('class' => 'ajax_page'));?>
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
	<tr>
		<th>Tên công ty</th>
		<td>
			<?php
			echo $this->Form->input('name', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => true,
					'value'=> isset($detail['Configuration']['name']) ? $detail['Configuration']['name'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Địa chỉ</th>
		<td>
			<?php
			echo $this->Form->input('address', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => true,
					'value'=> isset($detail['Configuration']['address']) ? $detail['Configuration']['address'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Điện thoại</th>
		<td>
			<?php
			echo $this->Form->input('phone', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w100',
					'required' => true,
					'value'=> isset($detail['Configuration']['phone']) ? $detail['Configuration']['phone'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Fax</th>
		<td>
			<?php
			echo $this->Form->input('fax', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w100',
					'required' => false,
					'value'=> isset($detail['Configuration']['fax']) ? $detail['Configuration']['fax'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Hotline</th>
		<td>
			<?php
			echo $this->Form->input('hotline', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w100',
					'required' => false,
					'value'=> isset($detail['Configuration']['hotline']) ? $detail['Configuration']['hotline'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Email</th>
		<td>
			<?php
			echo $this->Form->input('email', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['email']) ? $detail['Configuration']['email'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Url twitter</th>
		<td>
			<?php
			echo $this->Form->input('twitter', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['twitter']) ? $detail['Configuration']['twitter'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Url facebook</th>
		<td>
			<?php
			echo $this->Form->input('facebook', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['facebook']) ? $detail['Configuration']['facebook'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Url google+</th>
		<td>
			<?php
			echo $this->Form->input('google', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['google']) ? $detail['Configuration']['google'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Gmail name</th>
		<td>
			<?php
			echo $this->Form->input('gmail_name', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['gmail_name']) ? $detail['Configuration']['gmail_name'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Gmail pass</th>
		<td>
			<?php
			echo $this->Form->input('gmail_pass', array(
					'type' => 'text',
					'label' => false,
					'class' => 'form-control w400',
					'required' => false,
					'value'=> isset($detail['Configuration']['gmail_pass']) ? $detail['Configuration']['gmail_pass'] : '',
			));
			?>
		</td>
	</tr>
	<tr>
		<th>Keyword SEO</th>
		<td>
			<?php
				echo $this->Form->textarea('keywords', array(
					'label' => false,
					'required' => false,
					'rows'=> 4,
					'cols' => 70,
					'value'=> isset($detail['Configuration']['keywords']) ? $detail['Configuration']['keywords'] : '',
				));
			?>
		</td>
	</tr>
	<tr>
		<th>Description SEO</th>
		<td>
			<?php
				echo $this->Form->textarea('description', array(
					'label' => false,
					'required' => false,
					'rows'=>4,
					'cols' => 70,
					'value'=> isset($detail['Configuration']['description']) ? $detail['Configuration']['description'] : '',
				));
			?>
		</td>
	</tr>
	<tr>
		<th>&nbsp;</th>
		<td>
			<div class="form-group">
			<?php
			echo $this->Form->hidden('id', array('value' => 1));
			echo $this->Form->button('Submit', array(
					'type' => 'submit',
					'class' => 'btn btn-primary',
					'label' => false,
					'div' => false,
				)
			).'  ';

			echo $this->Form->button('Reset', array(
					'type' => 'reset',
					'class' => 'btn btn-primary',
					'label' => false,
					'div' => false,
				)
			);
			?>
			</div>
		</td>
	</tr>
</table>
<?php echo $this->Form->end()?>